﻿#ifndef REPORTER_H
#define REPORTER_H

#include <QtWidgets/QDialog>
#include <QStandardItemModel>
#include "udpsys.h"
#include "myxml.h"

namespace Ui {
class Reporter;
}

class Reporter : public QDialog
{
    Q_OBJECT

public:
    explicit Reporter(QWidget *parent = 0);
    void CreateTestReport(const SetupCase &setupCase, const QList<UdpDevice >  &udpDeviceList, const QList<TestCase> &testCaseList);
    ~Reporter();

protected:
    void resizeEvent(QResizeEvent *);

signals:
    void reportFinshed();

private slots:
    void on_pushButton_exit_clicked();
    void on_pushButton_saveas_clicked();

private:
    Ui::Reporter *ui;
    QStandardItemModel  *model;
    bool locked;
};

#endif // REPORTER_H
